<?php
require_once '../../core/fcCommon.php';
require_once '../../core/fcORM.php';

$json = getJsonFromRequest();
$obj = new Entity("some_table");
foreach($json as $key => $value){
    $obj->put($key, $value);
}
$obj->put('update_time', date("Y-m-d H:i:s", time() - 3600));

$condition = new Map();
$condition->put("id", $json["id"]);

$conn = new Connection();
$conn->merge($obj, $condition);
?>
